//
//  PercentCurrentPiePlot.h
//  Balance
//
//  Created by oracle on 7/20/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "CorePlot-CocoaTouch.h"
#import "MetricsItem.h"
#import "PercentCurrentLinePlot.h"


@interface PercentCurrentPiePlot :  UIViewController <CPTPieChartDataSource,PercentCurrentLinePlotDelegate,
CPTPlotSpaceDelegate>
{    
	CPTXYGraph * graph;
	NSMutableArray *pieData;
    NSDateFormatter *dateFormatter;
    NSArray *titles;
}
@property(readwrite, retain, nonatomic) NSMutableArray *pieData;

@property (nonatomic,retain) CPTXYGraph * graph;

@property(nonatomic,retain)  MetricsItem *item;


-(id) initWithMetricsData:(MetricsItem *) data;

-(void) renderInLayer:(CPTGraphHostingView *)layerHostingView withTheme:(CPTTheme *)theme;

-(void)respondToValueChange: (PercentCurrentLinePlot *)plot item:( MetricsItem *) metricsItem;
@end

